import Vue from 'vue'
const order = {
  // 获取列表
  orderList: function orderList(ip, postdata) {
    var ipStr = ip + '/' + postdata.status + '/' + postdata.pageSize + '/' + postdata.number
    return Vue.http.post(ipStr, postdata).then(response => {
      if (response.status === 200) {
        return Promise.resolve(response.body)
      } else {
        return Promise.reject(response.data.message)
      }
    })
  }
}

export default order
